from django.conf.urls.defaults import patterns, include, url
from django.views.generic.simple import direct_to_template
from games.views import *

urlpatterns = patterns('',
	url(r'^$',direct_to_template,{"template":"index.html"}),	
	url(r'^login',player_login),
	url(r'^logout',player_logout),
	url(r'^regist',player_regist),
	url(r'^play',play),
	url(r'^draw',draw),
	url(r'^main',main),
	#static
	(r'^css/(?P<path>.*)$','django.views.static.serve',{'document_root':settings.STATIC_ROOT+'/css'}),
	(r'^img/(?P<path>.*)$','django.views.static.serve',{'document_root':settings.STATIC_ROOT+'/img'}),
	(r'^js/(?P<path>.*)$','django.views.static.serve',{'document_root':settings.STATIC_ROOT+'/js'}),
	(r'^music/(?P<path>.*)$','django.views.static.serve',{'document_root':settings.STATIC_ROOT+'/music'}),
)
